//
//  AXFIconButton.m
//  AIXF
//
//  Created by Macx on 2017/7/9.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFIconButton.h"
#import "UIView+WP.h"
@implementation AXFIconButton


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.imageView.contentMode = UIViewContentModeCenter;
        
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        
        self.titleLabel.textColor = [UIColor blackColor];
    }
    
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageView.width = 30;
    
    self.imageView.height = 30;
    
    self.imageView.y = 0;
    
    
    self.titleLabel.y = 0;
    
    self.titleLabel.width = 50;
    
    //self.titleLabel.
}

@end
